import React from 'react';
import { useRouteMatch, useHistory } from 'react-router-dom';

const LoginView = () => {
  let match = useRouteMatch()
  console.log(match)
  const history = useHistory();
  console.log(history) // {go,goBack, push, replace,goForward,...}
  // {
  //   "path": "/login",
  //     "url": "/login",
  //       "isExact": true,
  //         "params": { }
  // }
  return (
    <div>
      <h1>Login View</h1>
    </div>
  );
}

export default LoginView;
